// stores/appStore.js
import { defineStore } from 'pinia';
import piniaPersistedstate from 'pinia-plugin-persistedstate';
export const useAppStore = defineStore('app', {
  state: () => ({
    currentStep: 1,
    uploadedFiles: [],
    selectedFiles: [],
    educationLevel: '',
    selectedGrade: '',
    selectedSubjects: [],
    aiMessages: []
  }),
  actions: {
    nextStep() {
      this.currentStep++;
    },

    // 其他actions...
  },
  persist: true // 启用状态持久化
});